package com.factory.UsersDataList;

import com.impl.UsersDatas.UserSelfInfoImpl;
import com.impl.UsersDial.UsersDialImpl;
import com.impl.UsersLocation.UsersLocationImpl;
import com.impl.UsersSMS.UsersSMSImpl;
import com.mInterface.UsersDatas.DatasListInterface;

public class UsersDatasListFactory {

	private UsersDatasListFactory(){}


	private static DatasListInterface DLI;


	public  static final  int  TYPE_USER_INFO = 0;

	public  static final  int  TYPE_SMS = 1;

	public  static final  int  TYPE_DIAL = 2;

	public  static final  int  TYPE_LOCATION = 3;

	public static DatasListInterface getInstance( int type ){

		switch (type) {
		case TYPE_USER_INFO:

			DLI = null;
			DLI = new UserSelfInfoImpl();

			break;

		case TYPE_SMS:

			DLI = null;
			DLI = new UsersSMSImpl();

			break;

		case TYPE_DIAL:

			DLI = null;
			
			DLI = new UsersDialImpl();

			break;

		case TYPE_LOCATION:

			DLI = new UsersLocationImpl();

			break;

		default:
			break;
		}

		return DLI;
	}

}
